package com.liuzhou.model;
//子任务实体
public class Subtask {
	private int id;//子任务id
	private int item_id;//父事项id
	private String item_name;//父事项的名称
	private String name;//子任务名称
	private String task_detail;//子任务详情
	/*举例如下：
	 * 任务名称：买彩票
	 * 任务详情：7月11号凌晨2：00 法国VS比利时 体彩买法国2：0
	 */
	
	public Subtask() {		
		id = 0;
		item_id = 0;
		name = "";
		task_detail = "";
	}

	
	
	public Subtask(int id, int item_id, String name, String task_detail) {
		super();
		this.id = id;
		this.item_id = item_id;
		this.name = name;
		this.task_detail = task_detail;
	}



	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getItem_id() {
		return item_id;
	}

	public void setItem_id(int item_id) {
		this.item_id = item_id;
	}

	
	
	public String getItem_name() {
		return item_name;
	}



	public void setItem_name(String item_name) {
		this.item_name = item_name;
	}



	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTask_detail() {
		return task_detail;
	}

	public void setTask_detail(String task_detail) {
		this.task_detail = task_detail;
	}



	@Override
	public String toString() {
		return "Subtask [task_detail=" + task_detail + "]";
	}
	
	
}
